package ui

import (
	"github.com/therecipe/qt/core"
	"github.com/therecipe/qt/uitools"
	"github.com/therecipe/qt/widgets"
)

type __mainwindow struct{}

func (*__mainwindow) init() {}

type MainWindow struct {
	*__mainwindow
	*widgets.QMainWindow
	Centralwidget               *widgets.QWidget
	Main_tab                    *widgets.QTabWidget
	Fofa_tab                    *widgets.QWidget
	Fofa_asset_ip               *widgets.QLineEdit
	Fofa_asset_label            *widgets.QLabel
	Fofa_start                  *widgets.QPushButton
	Fofa_stop                   *widgets.QPushButton
	Fofa_interval_label         *widgets.QLabel
	Fofa_interval               *widgets.QLineEdit
	Fofa_session_label          *widgets.QLabel
	Fofa_session                *widgets.QLineEdit
	Fofa_log                    *widgets.QTextEdit
	Fofa_clear                  *widgets.QPushButton
	St_tab                      *widgets.QWidget
	St_domain_label             *widgets.QLabel
	St_domain                   *widgets.QLineEdit
	St_stop                     *widgets.QPushButton
	St_dns_label                *widgets.QLabel
	St_start                    *widgets.QPushButton
	St_clear                    *widgets.QPushButton
	St_dns                      *widgets.QLineEdit
	St_key_label                *widgets.QLabel
	St_log                      *widgets.QTextEdit
	St_apikeylist               *widgets.QComboBox
	Sensitive_tab               *widgets.QWidget
	Spider_stop                 *widgets.QPushButton
	Spider_start                *widgets.QPushButton
	Spider_log                  *widgets.QTextEdit
	ToolBox_spider              *widgets.QToolBox
	Page                        *widgets.QWidget
	Spider_url                  *widgets.QLineEdit
	Spider_node                 *widgets.QLabel
	Spider_url_label            *widgets.QLabel
	Spider_cookie               *widgets.QLineEdit
	Spider_deps_label           *widgets.QLabel
	Spider_deps                 *widgets.QLineEdit
	Spider_cookie_label         *widgets.QLabel
	Spider_node_url             *widgets.QLineEdit
	Spider_import_urls          *widgets.QPushButton
	Page_2                      *widgets.QWidget
	Search_query                *widgets.QLineEdit
	Search_key                  *widgets.QLineEdit
	Search_query_label          *widgets.QLabel
	Search_key_label            *widgets.QLabel
	Search_enable               *widgets.QCheckBox
	Poc_tab                     *widgets.QWidget
	Poc_log                     *widgets.QTextEdit
	Poc_url                     *widgets.QLineEdit
	Poc_url_label               *widgets.QLabel
	Poc_import_urls             *widgets.QPushButton
	Poc_start                   *widgets.QPushButton
	Poc_stop                    *widgets.QPushButton
	Poc_reverse_url_label       *widgets.QLabel
	Poc_reverse_url             *widgets.QLineEdit
	Poc_reverse_url_check_label *widgets.QLabel
	Poc_reverse_url_check       *widgets.QLineEdit
	Poc_listen                  *widgets.QCheckBox
	Poc_file                    *widgets.QLineEdit
	Poc_import_file             *widgets.QPushButton
	Statusbar                   *widgets.QStatusBar
}

func NewMainWindow(p widgets.QWidget_ITF) *MainWindow {
	var par *widgets.QWidget
	if p != nil {
		par = p.QWidget_PTR()
	}
	file := core.NewQFile2(":/ui/darkeye.ui")
	file.Open(core.QIODevice__ReadOnly)
	w := &MainWindow{QMainWindow: widgets.NewQMainWindowFromPointer(uitools.NewQUiLoader(nil).Load(file, par).Pointer())}
	file.Close()
	w.setupUI()
	w.init()
	return w
}
func (w *MainWindow) setupUI() {
	w.Fofa_interval_label = widgets.NewQLabelFromPointer(w.FindChild("fofa_interval_label", core.Qt__FindChildrenRecursively).Pointer())
	w.Fofa_clear = widgets.NewQPushButtonFromPointer(w.FindChild("fofa_clear", core.Qt__FindChildrenRecursively).Pointer())
	w.Spider_stop = widgets.NewQPushButtonFromPointer(w.FindChild("spider_stop", core.Qt__FindChildrenRecursively).Pointer())
	w.Spider_url_label = widgets.NewQLabelFromPointer(w.FindChild("spider_url_label", core.Qt__FindChildrenRecursively).Pointer())
	w.Poc_stop = widgets.NewQPushButtonFromPointer(w.FindChild("poc_stop", core.Qt__FindChildrenRecursively).Pointer())
	w.Fofa_session_label = widgets.NewQLabelFromPointer(w.FindChild("fofa_session_label", core.Qt__FindChildrenRecursively).Pointer())
	w.Statusbar = widgets.NewQStatusBarFromPointer(w.FindChild("statusbar", core.Qt__FindChildrenRecursively).Pointer())
	w.Search_key = widgets.NewQLineEditFromPointer(w.FindChild("search_key", core.Qt__FindChildrenRecursively).Pointer())
	w.Poc_url = widgets.NewQLineEditFromPointer(w.FindChild("poc_url", core.Qt__FindChildrenRecursively).Pointer())
	w.Main_tab = widgets.NewQTabWidgetFromPointer(w.FindChild("main_tab", core.Qt__FindChildrenRecursively).Pointer())
	w.St_domain = widgets.NewQLineEditFromPointer(w.FindChild("st_domain", core.Qt__FindChildrenRecursively).Pointer())
	w.St_dns_label = widgets.NewQLabelFromPointer(w.FindChild("st_dns_label", core.Qt__FindChildrenRecursively).Pointer())
	w.Page = widgets.NewQWidgetFromPointer(w.FindChild("page", core.Qt__FindChildrenRecursively).Pointer())
	w.Spider_url = widgets.NewQLineEditFromPointer(w.FindChild("spider_url", core.Qt__FindChildrenRecursively).Pointer())
	w.Page_2 = widgets.NewQWidgetFromPointer(w.FindChild("page_2", core.Qt__FindChildrenRecursively).Pointer())
	w.Poc_reverse_url = widgets.NewQLineEditFromPointer(w.FindChild("poc_reverse_url", core.Qt__FindChildrenRecursively).Pointer())
	w.Poc_reverse_url_check_label = widgets.NewQLabelFromPointer(w.FindChild("poc_reverse_url_check_label", core.Qt__FindChildrenRecursively).Pointer())
	w.Spider_cookie = widgets.NewQLineEditFromPointer(w.FindChild("spider_cookie", core.Qt__FindChildrenRecursively).Pointer())
	w.Poc_url_label = widgets.NewQLabelFromPointer(w.FindChild("poc_url_label", core.Qt__FindChildrenRecursively).Pointer())
	w.Poc_reverse_url_label = widgets.NewQLabelFromPointer(w.FindChild("poc_reverse_url_label", core.Qt__FindChildrenRecursively).Pointer())
	w.Poc_import_file = widgets.NewQPushButtonFromPointer(w.FindChild("poc_import_file", core.Qt__FindChildrenRecursively).Pointer())
	w.Fofa_session = widgets.NewQLineEditFromPointer(w.FindChild("fofa_session", core.Qt__FindChildrenRecursively).Pointer())
	w.Sensitive_tab = widgets.NewQWidgetFromPointer(w.FindChild("sensitive_tab", core.Qt__FindChildrenRecursively).Pointer())
	w.Poc_log = widgets.NewQTextEditFromPointer(w.FindChild("poc_log", core.Qt__FindChildrenRecursively).Pointer())
	w.Fofa_log = widgets.NewQTextEditFromPointer(w.FindChild("fofa_log", core.Qt__FindChildrenRecursively).Pointer())
	w.Search_key_label = widgets.NewQLabelFromPointer(w.FindChild("search_key_label", core.Qt__FindChildrenRecursively).Pointer())
	w.Poc_import_urls = widgets.NewQPushButtonFromPointer(w.FindChild("poc_import_urls", core.Qt__FindChildrenRecursively).Pointer())
	w.Poc_file = widgets.NewQLineEditFromPointer(w.FindChild("poc_file", core.Qt__FindChildrenRecursively).Pointer())
	w.Fofa_tab = widgets.NewQWidgetFromPointer(w.FindChild("fofa_tab", core.Qt__FindChildrenRecursively).Pointer())
	w.Fofa_asset_label = widgets.NewQLabelFromPointer(w.FindChild("fofa_asset_label", core.Qt__FindChildrenRecursively).Pointer())
	w.Poc_start = widgets.NewQPushButtonFromPointer(w.FindChild("poc_start", core.Qt__FindChildrenRecursively).Pointer())
	w.Poc_reverse_url_check = widgets.NewQLineEditFromPointer(w.FindChild("poc_reverse_url_check", core.Qt__FindChildrenRecursively).Pointer())
	w.St_dns = widgets.NewQLineEditFromPointer(w.FindChild("st_dns", core.Qt__FindChildrenRecursively).Pointer())
	w.Spider_node = widgets.NewQLabelFromPointer(w.FindChild("spider_node", core.Qt__FindChildrenRecursively).Pointer())
	w.Fofa_start = widgets.NewQPushButtonFromPointer(w.FindChild("fofa_start", core.Qt__FindChildrenRecursively).Pointer())
	w.Spider_start = widgets.NewQPushButtonFromPointer(w.FindChild("spider_start", core.Qt__FindChildrenRecursively).Pointer())
	w.Search_enable = widgets.NewQCheckBoxFromPointer(w.FindChild("search_enable", core.Qt__FindChildrenRecursively).Pointer())
	w.Fofa_asset_ip = widgets.NewQLineEditFromPointer(w.FindChild("fofa_asset_ip", core.Qt__FindChildrenRecursively).Pointer())
	w.St_stop = widgets.NewQPushButtonFromPointer(w.FindChild("st_stop", core.Qt__FindChildrenRecursively).Pointer())
	w.St_clear = widgets.NewQPushButtonFromPointer(w.FindChild("st_clear", core.Qt__FindChildrenRecursively).Pointer())
	w.St_apikeylist = widgets.NewQComboBoxFromPointer(w.FindChild("st_apikeylist", core.Qt__FindChildrenRecursively).Pointer())
	w.Spider_deps = widgets.NewQLineEditFromPointer(w.FindChild("spider_deps", core.Qt__FindChildrenRecursively).Pointer())
	w.Search_query_label = widgets.NewQLabelFromPointer(w.FindChild("search_query_label", core.Qt__FindChildrenRecursively).Pointer())
	w.St_tab = widgets.NewQWidgetFromPointer(w.FindChild("st_tab", core.Qt__FindChildrenRecursively).Pointer())
	w.St_domain_label = widgets.NewQLabelFromPointer(w.FindChild("st_domain_label", core.Qt__FindChildrenRecursively).Pointer())
	w.ToolBox_spider = widgets.NewQToolBoxFromPointer(w.FindChild("toolBox_spider", core.Qt__FindChildrenRecursively).Pointer())
	w.Spider_cookie_label = widgets.NewQLabelFromPointer(w.FindChild("spider_cookie_label", core.Qt__FindChildrenRecursively).Pointer())
	w.Poc_tab = widgets.NewQWidgetFromPointer(w.FindChild("poc_tab", core.Qt__FindChildrenRecursively).Pointer())
	w.Fofa_interval = widgets.NewQLineEditFromPointer(w.FindChild("fofa_interval", core.Qt__FindChildrenRecursively).Pointer())
	w.Spider_deps_label = widgets.NewQLabelFromPointer(w.FindChild("spider_deps_label", core.Qt__FindChildrenRecursively).Pointer())
	w.Spider_import_urls = widgets.NewQPushButtonFromPointer(w.FindChild("spider_import_urls", core.Qt__FindChildrenRecursively).Pointer())
	w.St_key_label = widgets.NewQLabelFromPointer(w.FindChild("st_key_label", core.Qt__FindChildrenRecursively).Pointer())
	w.St_log = widgets.NewQTextEditFromPointer(w.FindChild("st_log", core.Qt__FindChildrenRecursively).Pointer())
	w.Spider_node_url = widgets.NewQLineEditFromPointer(w.FindChild("spider_node_url", core.Qt__FindChildrenRecursively).Pointer())
	w.Centralwidget = widgets.NewQWidgetFromPointer(w.FindChild("centralwidget", core.Qt__FindChildrenRecursively).Pointer())
	w.St_start = widgets.NewQPushButtonFromPointer(w.FindChild("st_start", core.Qt__FindChildrenRecursively).Pointer())
	w.Search_query = widgets.NewQLineEditFromPointer(w.FindChild("search_query", core.Qt__FindChildrenRecursively).Pointer())
	w.Poc_listen = widgets.NewQCheckBoxFromPointer(w.FindChild("poc_listen", core.Qt__FindChildrenRecursively).Pointer())
	w.Fofa_stop = widgets.NewQPushButtonFromPointer(w.FindChild("fofa_stop", core.Qt__FindChildrenRecursively).Pointer())
	w.Spider_log = widgets.NewQTextEditFromPointer(w.FindChild("spider_log", core.Qt__FindChildrenRecursively).Pointer())
}
